﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta name=”renderer” content=”webkit|ie-comp|ie-stand” />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <link rel="icon" href="/favicon.ico">

    <title>流程模板设计</title>
    <link href="/assets/plugins/font/css/font-awesome.min.css" rel="stylesheet"/>
    <link href="/assets/plugins/bootstrap/bootstrap.min.css" rel="stylesheet"/>

    <link href="/module/style/lr-common.css" rel="stylesheet"/>
    <link href="/module/plugin/scroll/scroll.css" rel="stylesheet"/>
    <link href="/module/style/lr-iframe-form.css" rel="stylesheet"/>
    <link href="/module/plugin/wizard/wizard.css" rel="stylesheet"/>
    <link href="/module/plugin/tree/lr-tree.css" rel="stylesheet"/>
    <link href="/module/plugin/select/lr-select.css" rel="stylesheet"/>

    <link href="/module/plugin/timeline/lr-timeline.css" rel="stylesheet"/>
    <link href="/module/plugin/formselect/lr-formselect.css" rel="stylesheet"/>
    <link href="/module/plugin/inputsearch/lr-isearch.css" rel="stylesheet"/>
    <link href="/module/plugin/grid/jfgrid.css" rel="stylesheet"/>
    <link href="/module/plugin/uploader/lr-uploader.css" rel="stylesheet"/>
    <link href="/module/plugin/workflow3/lr-workflow-ui.css" rel="stylesheet"/>

    <link href="form.css" rel="stylesheet"/>

    <script src="/assets/plugins/jquery/jquery-1.10.2.min.js"></script>
    <script src="/assets/plugins/jquery/jquery.md5.min.js"></script>
    <script src="/assets/plugins/jquery/plugin/jqprint/jquery.jqprint-0.3.js"></script>
    <script src="/assets/plugins/laydate/laydate.js"></script>

    <!--[if lt IE 9]>
    <script src="/assets/plugins/bootstrap/html5shiv.min.js"></script>
    <script src="/assets/plugins/bootstrap/respond.min.js"></script>
    <![endif]-->
    <script>
        function request(d) { for (var c = location.search.slice(1).split("&"), a = 0; a < c.length; a++) { var b = c[a].split("="); if (b[0] == d) if ("undefined" == unescape(b[1])) break; else return unescape(b[1]) } return "" };
    </script>

</head>
<body class="Chrome 64.0 lr-uitheme-top">
<div id="lr_form_bg" class="lr-form-bg">
</div>

<div class="widget-body">
    <div id="wizard" class="wizard" data-target="#wizard-steps">
        <ul class="steps">
            <li data-target="#step-1" class="active"><span class="step">1</span><span class="lrlg">基本配置</span><span class="chevron"></span></li>
            <li data-target="#step-2"><span class="step">2</span><span class="lrlg">权限设置</span><span class="chevron"></span></li>
            <li data-target="#step-3"><span class="step">3</span><span class="lrlg">模板设计</span><span class="chevron"></span></li>
        </ul>
    </div>
    <div class="step-content" id="wizard-steps">
        <div class="step-pane step-pane-base active" id="step-1">
            <div class="lr-alert">
                <div class="alert alert-danger">
                    <i class="fa fa-warning alert-dismissible"></i>
                    <span class="lrlg">请你填写模板信息，用于创建或修改模板</span>
                </div>
            </div>

            <div class="panel panel-default lr-panel">
                <div class="panel-heading">
                    <h3 class="panel-title"><span class="lrlg">模板基本信息配置</span></h3>
                </div>
                <div class="panel-body">
                    <input id="schemeId" type="hidden" />
                    <div class="col-xs-12 lr-form-item" style="top:15px;">
                        <div class="lr-form-item-title">模板编号<font face="宋体">*</font></div>
                        <input id="code" type="text" class="form-control" placeholder="请输入编号" isvalid="yes" checkexpession="NotNull" />
                    </div>
                    <div class="col-xs-12 lr-form-item" style="top:53px;">
                        <div class="lr-form-item-title">模板名称<font face="宋体">*</font></div>
                        <input id="name" type="text" class="form-control" placeholder="请输入名称" isvalid="yes" checkexpession="NotNull" />
                    </div>
                    <div class="col-xs-12 lr-form-item" style="top:91px;">
                        <div class="lr-form-item-title">模板分类<font face="宋体">*</font></div>
                        <div id="category" isvalid="yes" checkexpession="NotNull"></div>
                    </div>
                    <div class="col-xs-12 lr-form-item" style="top:129px;">
                        <div class="lr-form-item-title">我的任务<font face="宋体">*</font></div>
                        <div class="radio lr-radio" type="lr-radio" id="mark">
                            <label>
                                <input name="mark" type="radio" value="1" checked="checked" />
                                <span class="lrlg">允许发起</span>
                            </label>
                            <label>
                                <input name="mark" type="radio" value="2" />
                                <span class="lrlg">不允许发起</span>
                            </label>
                        </div>
                    </div>
                    <div class="col-xs-12 lr-form-item" style="top:167px;">
                        <div class="lr-form-item-title">撤销作废执行<font face="宋体">*</font></div>
                        <div class="radio lr-radio" type="lr-radio" id="closeDoType">
                            <label>
                                <input name="closeDoType" type="radio" value="sql" checked="checked" />
                                <span class="lrlg">sql</span>
                            </label>
                            <label>
                                <input name="closeDoType" type="radio" value="ioc" />
                                <span class="lrlg">依赖注入方法</span>
                            </label>
                            <label>
                                <input name="closeDoType" type="radio" value="interface" />
                                <span class="lrlg">接口</span>
                            </label>
                        </div>
                    </div>
                    <div class="col-xs-12 lr-form-item" style="top:205px;height:140px;">
                        <div id="sql" class="operationDiv" style="position:relative;width:100%;height:100%;padding-top:52px;">
                            <div style="position:absolute;height:49px;width:100%;padding:0px;top:0;left:0;">
                                <div class="alert alert-danger" style="position:relative;text-align: left;margin:0;">
                                    <i class="fa fa-question-circle alert-dismissible" style="position: relative; top: 1px; font-size: 15px; padding-right: 5px;"></i>
                                    <span class="lrlg">注意：请配置SQL语句（{processId}流程进程主键{userId}用户Id{userAccount}用户账号{companyId}用户公司{departmentId}用户部门{code}1撤销2作废3删除草稿）！</span>
                                </div>
                            </div>
                            <div class="lr-form-wrap" style="padding:0px;padding-top:40px;">
                                <div style="position:absolute;left:0;top:5px;width:100%;height:28px;padding:0;"><div id="closeDoDbId" style="position:relative;width:100%;height:100%;"></div></div>
                                <textarea id="closeDoSql" class="form-control" style="height: 100%" placeholder="请填写Sql语句"></textarea>
                            </div>
                        </div>
                        <div id="ioc" class="operationDiv" style="position:relative;width:100%;height:100%;display:none;padding-top:54px;">
                            <div style="position:absolute;height:54px;width:100%;padding:0px;top:0;left:0;">
                                <div class="alert alert-danger" style="position:relative;text-align: left;margin:0;">
                                    <i class="fa fa-question-circle alert-dismissible" style="position: relative; top: 1px; font-size: 15px; padding-right: 5px;"></i>
                                    注意：必须要开发人员指导下进行配置注册的IOC方法名,需要继承接口IWorkFlowMethod(或咨询力软售后人员)！
                                </div>
                            </div>
                            <div class="lr-form-wrap" style="padding:0px;">
                                <textarea id="closeDoIocName" class="form-control" placeholder="请填写方法名" style="height: 100%"></textarea>
                            </div>
                        </div>
                        <div id="interface" class="operationDiv" style="position:relative;width:100%;height:100%;display:none;padding-top:74px;">
                            <div style="position:absolute;height:54px;width:100%;padding:0px;top:0;left:0;">
                                <div class="alert alert-danger" style="position:relative;text-align: left;margin:0;">
                                    <i class="fa fa-question-circle alert-dismissible" style="position: relative; top: 1px; font-size: 15px; padding-right: 5px;"></i>
                                    <span class="lrlg">注意：必须要开发人员指导下进行配置支持Post方法的接口,json数据格式。{processId:'流程发起实例主键',userId:'用户Id',userAccount:'用户账号',companyId:'用户公司',departmentId:'用户部门',code:'1撤销2作废'}(或咨询力软售后人员)！</span>
                                </div>
                            </div>
                            <div class="lr-form-wrap" style="padding:0px;">
                                <textarea id="closeDoInterface" class="form-control" placeholder="请填写接口地址" style="height: 100%"></textarea>
                            </div>
                        </div>
                    </div>

                    <div class="col-xs-12 lr-form-item" style="position:relative;width:100%;height:100%;">
                        <div class="lr-form-item-title">备注</div>
                        <textarea id="description" class="form-control" style="height: 100%;"></textarea>
                    </div>
                </div>
            </div>
        </div>
        <div class="step-pane" id="step-2" style="padding:5px;padding-top:40px;">
            <div style="position:absolute;height:40px;width:100%;left:0;top:0;">
                <div class="col-xs-12 lr-form-item" style="padding:0px;padding-left:10px;padding-top: 8px;">
                    <div class="radio">
                        <label>
                            <input name="authorizeType" id="authorizeType1" type="radio" value="1" checked="checked" />
                            <span class="lrlg">所有成员</span>
                        </label>
                        <label>
                            <input name="authorizeType" id="authorizeType2" type="radio" value="2" />
                            <span class="lrlg">指定成员</span>
                        </label>
                    </div>
                </div>

            </div>
            <div style="position:relative;width:100%;height:100%;border:1px solid #ddd;padding-bottom:30px;">
                <div style="bottom:0;border-bottom:0px;border-top:1px solid #ddd;position: absolute;left: 0;width: 100%;height: 30px;line-height: 29px;background-color: #F5F5F5;border-bottom: 1px solid #ddd;text-align: right;padding-right: 10px;font-weight: bold;color: #676a6c;">
                    <div class="lr-form-jfgrid-btns">
                        <a id="lr_post_authorize" class="btn btn-success"><i class="fa fa-graduation-cap"></i>&nbsp; <span class="lrlg">添加岗位</span></a>
                        <a id="lr_role_authorize" class="btn btn-info"><i class="fa fa-paw"></i>&nbsp; <span class="lrlg">添加角色</span></a>
                        <a id="lr_user_authorize" class="btn btn-primary"><i class="fa fa-user"></i>&nbsp; <span class="lrlg">添加人员</span></a>

                        <a id="lr_delete_authorize" class="btn btn-danger"><i class="fa fa-trash-o"></i>&nbsp; <span class="lrlg">移除</span></a>
                    </div>
                </div>
                <div id="authorize_girdtable"></div>
                <div id="shcemeAuthorizeBg" style="z-index:10;position:absolute;left:0;top:0;width:100%;height:100%;background:#000;filter:alpha(opacity=10); opacity: 0.1;"></div>
            </div>
        </div>
        <div class="step-pane" id="step-3"></div>
    </div>

    <div class="lr-form-bottom-button" id="wizard-actions">
        <a id="btn_prev" class="btn btn-default btn-prev" disabled><span class="lrlg">上一步</span></a>
        <a id="btn_next" class="btn btn-default btn-next"><span class="lrlg">下一步</span></a>
        <a id="btn_draft" class="btn btn-warning"><span class="lrlg">保存草稿</span></a>
        <a id="btn_finish" class="btn btn-success" disabled><span class="lrlg">保存</span></a>
    </div>
</div>


<script src="form.js"></script>

<script src="/module/config.js"></script>
<script src="/module/plugin/resize/resize.js"></script>
<script src="/module/plugin/mousewheel/mousewheel.js"></script>
<script src="/module/plugin/scroll/scroll.js"></script>
<script src="/module/plugin/tree/lr-tree.js"></script>
<script src="/module/plugin/select/lr-select.js"></script>
<script src="/module/plugin/timeline/lr-timeline.js"></script>
<script src="/module/plugin/formselect/lr-formselect.js"></script>
<script src="/module/plugin/date/lr-datepicker.js"></script>
<script src="/module/plugin/grid/jfgrid.js"></script>
<script src="/module/plugin/wizard/wizard.js"></script>
<script src="/module/script/lr-validator.js"></script>
<script src="/module/script/lr-authorize.js"></script>
<script src="/module/script/lr-form.js"></script>

<script src="/module/plugin/inputsearch/lr-isearch.js"></script>
<script src="/module/plugin/workflow3/lr-workflow-ui.js"></script>

<script>
    var lrModuleButtonList;var lrModuleColumnList;var lrModule;
    $.lrToken = config.getToken().access_token;
    $(function () {
        $('#lr_form_bg').fadeOut();
        $('#form').lrscroll();



        if (!!window.bootstrap) {
            bootstrap(jQuery, top.learun);
        }
    });
</script>
</body>
</html>
